import { showBox } from './data';

export const useShowBoxHandle = (prop: string) => {
    for (const p in showBox) {
        if (prop !== p) {
            showBox[p] = false;
        }
    }
    showBox[prop] = !showBox[prop];
}